.search-container {
  width: 100%;
  height: 100%;
}

.search-header {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 0 12px;
  box-sizing: border-box;
}

.search-header-left {
  width: 30px;
  height: 30px;
}

.search-header-center {
  flex: 1;
  margin-left: 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 0 12px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-header-right {
  width: 30px;
  height: 30px;
  margin: 0 8px;
  line-height: 30px;
  font-size: 14px;
}

.search-main {
  width: 100%;
  height: auto;
  margin-top: 10px;
  padding: 0 10px;
}

.search-main-center {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  /* 允许换行 */
  gap: 10px;
  /* 元素间距 */
}

.search-main-title {
  height: 50px;
  line-height: 50px;
}

.search-items {
  padding: 6px 12px;
  border: 1px solid #ccc;
  width: auto;
  border-radius: 4px;
  background-color: #f5f5f5;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .search-header {
    height: 48px;
    padding: 0 10px;
  }

  .search-header-center {
    height: 34px;
    padding: 0 10px;
  }

  .search-header-right {
    margin: 0 6px;
  }

  .search-main {
    padding: 0 8px;
  }

  .search-main-center {
    gap: 8px;
  }

  .search-items {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .search-header {
    height: 46px;
    padding: 0 8px;
  }

  .search-header-center {
    height: 32px;
    padding: 0 8px;
  }

  .search-main-center {
    gap: 6px;
  }

  .search-items {
    padding: 4px 8px;
    font-size: 12px;
  }
}